# 计算列表中所有数字和

a = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]


def sum_of_list(a):
    result = 0
    for i in a:
        result += i
    return result


print(sum_of_list(a))
